package com.xj.common.bussiness.personalInformationImg.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;

/**
 * <p>
 * 个人信息的照片（如：身份证）
 * </p>
 *
 * @author Hmemb
 * @since 2018-02-24
 */
@Data
@Setter
@TableName("tb_personal_information_img")
public class TbPersonalInformationImg extends Model<TbPersonalInformationImg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	 /**
     * 用户表id
     */
	@TableField(value="user_info_id")
	private Integer userInfoId;
    /**
     * 身份证号
     */
	@TableField(value="identity_num")
	private String identityNum;

	/**
	 * 用户备案信息图片地址
	 */
	@TableField(value="reference_user_img")
	private String referenceUserImg;
	/**
	 * 用户备案发票信息图片地址
	 */
	@TableField(value="reference_invoice_img")
	private String referenceInvoiceImg;
	/**
	 * 创建时间
	 */
	@TableField(value="create_date")
	@DateTimeFormat(iso = DATE)
	private Date createDate;

	/**
	 * 大架号
	 */
	@TableField(value="big_shelf_num")
	private String bigShelfNum;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(Integer userInfoId) {
		this.userInfoId = userInfoId;
	}

	public String getIdentityNum() {
		return identityNum;
	}

	public void setIdentityNum(String identityNum) {
		this.identityNum = identityNum;
	}

	public String getBigShelfNum() {
		return bigShelfNum;
	}

	public void setBigShelfNum(String bigShelfNum) {
		this.bigShelfNum = bigShelfNum;
	}

	public String getReferenceUserImg() {
		return referenceUserImg;
	}

	public void setReferenceUserImg(String referenceUserImg) {
		this.referenceUserImg = referenceUserImg;
	}

	public String getReferenceInvoiceImg() {
		return referenceInvoiceImg;
	}

	public void setReferenceInvoiceImg(String referenceInvoiceImg) {
		this.referenceInvoiceImg = referenceInvoiceImg;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
